"""
HumanMakerStrategy.py

Author: Zach Epolito
Date: 9-22-08
"""

from MakerStrategy import MakerStrategy
from HumanMakerInputFrame import HumanMakerInputFrame
"""represents a human maker
"""
class HumanMakerStrategy(MakerStrategy):

    #Frame for getting Maker input

    """Constructor."""
    def __init__(self):
        self.frame = None

    """passes the controller functor and
       frame to the GUI
    """
    def strategy(self, contFunctor, GUI):
        #Requests the GUI to get input from the user
        if self.frame == None:
            self.frame = HumanMakerInputFrame(GUI.getRootInputView(), contFunctor, width=300, height=100)
        #self.frame.reset()
        GUI.set_input_view(self.frame)
        self.frame = None
        
